<?php
	session_start();
	if(!empty($_POST['data'])){
		$data = json_decode(base64_decode($_POST['data']),true);
		$_SESSION['USER'] = $data;
	}
	if(empty($_SESSION['USER'])){
		$callbackUrl = 'http://api.weixinzjit.com/lb/index.php';
		$oauthUrl = 'http://api.weixinzjit.com/api.php/wx/oauth?callback='.urlencode($callbackUrl).'&type=userinfo';
		//echo '<script>location.href="'.$oauthUrl.'"</script>';
		//exit();
	}
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<META HTTP-EQUIV="pragma" CONTENT="no-cache"> 
		<META HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
		<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
		<META HTTP-EQUIV="expires" CONTENT="0"> 
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>立邦为你刷新又一年</title>
		<?php include_once 'inc.php'; ?>
		<link rel="stylesheet" type="text/css" href="css/swiper.min.css">
		<link rel="stylesheet" type="text/css" href="css/style.css?t=<?php echo time(); ?>">
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/swiper.min.js"></script>
		<script src="js/adaptUILayout.js"></script> 
	    <script>
	        adaptUILayout.load(640);
	    </script> 
	</head>
	<body d_username="<?php echo $_SESSION['USER']['nickname']; ?>">
		<audio id="music" src="sound/sound.mp3" autoplay="autoplay" loop="loop"></audio>
		<div id="loading">
			<img src="img/loading.png"  />
			<span id="per"></span>
		</div>
		<div id="snow">
			<div class="sn sn1"></div>
			<div class="sn sn2"></div>
			<div class="sn sn3"></div>
			<div class="sn sn4"></div>
		</div>
		<div class="swiper-container">
			<div class="swiper-wrapper">
				<div class="swiper-slide">
					<div class="page page1">
						<div class="logo"></div>
						<div class="p1_img"></div>
						<div class="p1_txt1"></div>
						<div class="p1_txt2"></div>
						<div class="point_dowm"></div>
					</div>
				</div>
				<div class="swiper-slide swiper-no-swiping">
					<div class="page page2"> 
						<div class="p2_bg_top"></div>
						<div class="p2_txt"></div>
						<div class="p2_point_dowm"></div>
						<div class="p2_bo"></div>
						<div class="p2_huatong"></div>
						<div class="p2_bg"></div>
						<div class="point_dowm"></div>
					</div>
				</div>
				<div class="swiper-slide swiper-no-swiping">
					<div class="page page3">
						<div class="p3_bg_top"></div>
						<div class="p3_bg_bottom"></div>
						<div class="bo_box">
							<div class="bo bo_1"></div>
							<div class="bo bo_2"></div>
							<div class="bo bo_3"></div>
							<div class="bo bo_4"></div>
							<div class="bo bo_5"></div>
						</div>
						<div class="p3_btnbox">
							<div class="pbt pbtn_1"></div>
							<div class="pbt pbtn_2"></div>
							<div class="pbt pbtn_3"></div>
						</div>
					</div>
				</div>
				<div class="swiper-slide swiper-no-swiping">
					<div class="page page4">
						
							<div class="tree_box">
								<div class="tree tree_0"></div>
								<div class="tree tree_1"></div>
								<div class="tree tree_2"></div>
								<div class="tree tree_3"></div>
							</div>
							<div class="sz_box">
								<div d_val="1" class="sz sz_1"></div>
								<div d_val="2" class="sz sz_2"></div>
								<div d_val="3" class="sz sz_3"></div>
							</div>
							<div class="sz_mv"></div>
							<div class="p4_btnbox">
								<div class="pbt pbtn_1"></div>
								<div class="pbt pbtn_2"></div>
								<div class="pbt pbtn_3"></div>
							</div>
					</div>
				</div>
				<div class="swiper-slide swiper-no-swiping">
					<div class="page page5">
						<div class="page_set">
							<div class="p5_bg"></div>
							<div class="p5_bg_2"></div>
							<div class="p5_star"></div>
							<div class="p5_mv">
								<div class="p5mv p5mv_1 mv"></div>
								<div class="p5mv p5mv_2"></div>
								<div class="p5mv p5mv_3"></div>
								<div class="p5mv p5mv_4"></div>
							</div>
							<div class="p5_txt"></div>
							<div class="p5_tree"></div>
							<div class="p5_btnbox">
								<div class="pbt pbtn_1"></div>
								<div class="pbt pbtn_2"></div>
							</div>
						</div>
						<div class="page_view">
							<div class="box_back"></div>
							<div class="card"></div>
							<div class="box_front"></div>
							<div class="p5_txt_2"></div>
							<div class="hz">
								<div class="hz_body"></div>
								<div class="hz_head"></div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div id="share"></div>
		<div class ="music music_play"></div>
		<script type="text/javascript" src="js/index.js" ></script>
	</body>
<?php include_once 'wx_js.php'; ?>
</html>
